/**
  ******************************************************************************
  * @file           : bsp_led.h
  * @author         : Ylint
  * @brief          : None
  * @attention      : None
  * @date           : 2024/4/5
  ******************************************************************************
  */

#ifndef RCT6_BALANCE_CAR_BSP_LED_H
#define RCT6_BALANCE_CAR_BSP_LED_H

#include "main.h"

//LED_GREEN亮
#define _LED_GREEN_ON					    do{HAL_GPIO_WritePin(LED_GREEN_GPIO_Port,LED_GREEN_Pin,GPIO_PIN_RESET);}while(0)
//LED_GREEN灭
#define _LED_GREEN_OFF					    do{HAL_GPIO_WritePin(LED_GREEN_GPIO_Port,LED_GREEN_Pin,GPIO_PIN_SET);}while(0)
//LED_BLUE亮
#define _LED_BLUE_ON					    do{HAL_GPIO_WritePin(LED_BLUE_GPIO_Port,LED_BLUE_Pin,GPIO_PIN_RESET);}while(0)
//LED_BLUE灭
#define _LED_BLUE_OFF					    do{HAL_GPIO_WritePin(LED_BLUE_GPIO_Port,LED_BLUE_Pin,GPIO_PIN_SET);}while(0)

//LED_GREEN状态翻转
#define _LED_GREEN_Toggle				    do{HAL_GPIO_TogglePin(LED_GREEN_GPIO_Port,LED_GREEN_Pin);}while(0)
//LED_BLUE状态翻转
#define _LED_BLUE_Toggle				    do{HAL_GPIO_TogglePin(LED_BLUE_GPIO_Port,LED_BLUE_Pin);}while(0)





void init_success(void);

#endif //RCT6_BALANCE_CAR_BSP_LED_H
